import {createApp } from 'vue'
import App from "@/App";
const app = createApp(App)
app.component('inline-button',()=>import('@/components/button/inline-button'))

/*
function capitalizeFirstLetter(string){
    return string.charAt(0).toUpperCase() + string.slice(1);
}
const requireComponent = require.context(
    '.',true,/\.vue$/
    //找到components文件夹下以.vue命名的文件
)
console.log(requireComponent.keys())
requireComponent.keys().forEach(fileName => {
    const componetConfig = requireComponent(fileName);
    let a = fileName.lastIndexOf('/');
    fileName = '.' + fileName.slice(a);
    console.log(fileName,"文件名称")
    const componetName = capitalizeFirstLetter(
        fileName.replace(/^\.\//,'').replace(/\.\w+$/,'')
    )
    console.log(componetName)
    app.component(componetName, componetConfig)
})*/
